<%-------------------------------------------------------------------
 * 页面名称：addOperatorSuccess.jsp
 * 功能描述：重置操作员密码
 * Action: 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%
String path = request.getContextPath();
%>
<script type='text/javascript'
	src='<%=path%>/js/vnv/passwordStrength.js'></script>
<SCRIPT LANGUAGE="JavaScript">
	function submitProcess() {
		var formName = document.forms["0"];
		if(checkNecessaryInput(formName)) {
			if(getObj("newPass").value.length < 6 || getObj("reNewPass").value.length < 6) {
				alert("密码必须大于6位！");
				return false;
			}
			if(getObj("newPass").value != getObj("reNewPass").value) {
				alert("两次输入的新密码要一致！");
				return false;
			} 
			if(!passwordValidate(getObj("newPass"))) {
				alert("密码只能为数字或字母组合！");
				getObj("newPass").value = "";
				getObj("reNewPass").value = "";
				return false;
			}
			formName.submit();
		}
	}
</SCRIPT>
<div id="mainFrame">
	<html:form action="modifyPassword.do">
		<!-- 重置标志 0--不重置，需要校验旧密码 1--重置，无需校验旧密码 -->
		<html:hidden property="resetFlag" value="1" />
		<!-- 对象类型 user--用户(个人或企业admin) operator--企业操作员 -->
		<html:hidden property="objectType" />
		<!-- 对象Id，修改企业操作员的密码需传入此参数 -->
		<html:hidden property="objectId" />
		<!-- 修改类型 login--登录密码 pay--支付密码 -->
		<html:hidden property="modifyType" />
		<div class="rightSider">
			<div class="sub_title">
				<span class="bluefont18bdrop">操作员<logic:equal
						name="ModifyLoginPassForm" property="modifyType"
						value="<%=IAccountConst.MODIFY_TYPE_PAY%>">支付</logic:equal>
					<logic:equal name="ModifyLoginPassForm" property="modifyType"
						value="<%=IAccountConst.MODIFY_TYPE_LOGIN%>">登录</logic:equal>密码重置</span>
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="1">
					<tr>
						<td width="20%" height="40" align="right">
							<span class="orang12b">*</span> 新密码：
						</td>
						<td width="40%" bgcolor="#FFFFFF">
							<html:password property="newPass" alt="新 密 码" maxlength="20"
								styleClass="inputStyle" onkeyup="newPassword.update(this.value)" />
						</td>
						<td width="40%" bgcolor="#FFFFFF">
							<ad:passwordStrength objectName="newPassword" />
						</td>
					</tr>
					<tr>
						<td height="40" align="right">
							<span class="orang12b">* </span> 重复新密码：
						</td>
						<td bgcolor="#FFFFFF">
							<html:password property="reNewPass" alt="重复新密码" maxlength="20"
								styleClass="inputStyle"
								onkeyup="confirmPassword.update(this.value)" />
						</td>
						<td bgcolor="#FFFFFF">
							<ad:passwordStrength objectName="confirmPassword" />
						</td>
					</tr>
					<tr>
						<td height="55" align="right">
							&nbsp;
						</td>
						<td height="50" colspan="2" bgcolor="#FFFFFF">
							<input name="button2" type="button" class="button_style"
								onclick="submitProcess();" value="确 定" />
							<input name="button" type="button" class="button_style"
								onclick="location.href='operator.do';" value="返 回" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</html:form>
</div>
<div align="center">
	<!-- include 我的账户左侧账户管理菜单 -->
	<jsp:include page="left.jsp?current=operator" />
</div>
